package com.twu.biblioteca;

/**
 * Created with IntelliJ IDEA.
 * User: Deepika
 * Date: 5/31/13
 * Time: 12:28 AM
 * To change this template use File | Settings | File Templates.
 */
class Book {
    private String name;
    private int available;            // 1 indicates book is available, 0 indicates not available

    Book(String name, int available){
        this.name = name;
        this.available = available;
    }

    Book(String name){
        this.name = name;
        this.available = 1;
    }

    public String getName(){
        return name;
    }

    public int checkAvailability(){
        return available;
    }

    public void issueBook(){
        this.available = 0;
    }
}